package com.ecloud.service.translate.service.iface;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ecloud.common.base.result.Result;
import com.ecloud.common.base.result.Rows;
import com.ecloud.openapi.translate.dto.BaseDictionaryDto;
import com.ecloud.openapi.translate.po.BaseDictionaryPo;
import com.ecloud.openapi.translate.vo.BaseDictionaryListVo;

/**
 * 基础字典表 服务接口
 *
 * @author LiuGangQiang Create in 2021/08/06
 */
public interface IBaseDictionaryService extends IService<BaseDictionaryPo> {

    /**
     * 新增
     *
     * @author LiuGangQiang Create in 2021/08/10
     * @param dto 入参
     * @return {@link Result}
     */
    Result<?> insert(BaseDictionaryDto dto);

    /**
     * 删除
     *
     * @author LiuGangQiang Create in 2021/08/10
     * @param id 主键
     * @return {@link Result}
     */
    Result<?> delete(Long id);

    /**
     * 修改数据
     *
     * @author LiuGangQiang Create in 2021/08/10
     * @param dto 参数
     * @return {@link Result}
     */
    Result<?> update(BaseDictionaryDto dto);

    /**
     * 查询列表
     *
     * @author LiuGangQiang Create in 2021/08/10
     * @param dto 入参
     * @return {@link Result}
     */
    Result<Rows<BaseDictionaryListVo>> queryList(BaseDictionaryDto dto);

    /**
     * 查询详情
     *
     * @author LiuGangQiang Create in 2021/08/10
     * @param id 主键
     * @return {@link Result}
     */
    Result<?> queryDetail(Long id);

}
